package com.springboot.model.vo;

import java.math.BigDecimal;

import com.springboot.exceptions.InsufficientBalanceException;
import com.springboot.exceptions.InvalidAmountException;


public class VirtualWalletVO {
	private Integer walletId;
    private BigDecimal balance=BigDecimal.ZERO;
    private String userId;
    
    
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public Integer getWalletId() {
		return walletId;
	}

	public void setWalletId(Integer walletId) {
		this.walletId = walletId;
	}

	
	public BigDecimal getBalance() {
		return balance;
	}

	public void setBalance(BigDecimal balance) {
		this.balance = balance;
	}
	

	public VirtualWalletVO(Integer preAllocatedId) {
		this.walletId = preAllocatedId;//预分配的Id
	}
    
    
    public BigDecimal balance() {
		return this.balance;//获取余额
	}
    
}
